package ch8;

/**
 * @author oldliu
 * @since 1.0
 */
public class Array1 {
    public static void main(String[] args) {
        int[] ar=new int[20];
        ar[0]=100;
        ar[1]=77;
        ar[2]=37;
        ar[19]=76;
        // ar={1,2,3,3,6,7,100};error
        //System.out.println(ar);
        System.out.println(ar[0]);
        ar[1]=ar[1]+10;
        System.out.println(ar[1]);
        double []d={1.0,2.5,4.6,4.7,7.3};
        System.out.println(d[2]);
        System.out.println("d的长度："+d.length);

        int []a2=new int[]{1,2,3,4,6,7,8,100};

    }
}
